﻿@{
    ViewBag.Page = "person";
    Layout = "~/Views/Shared/_PersionLayout.cshtml";
    ViewBag.Menu = "userinfo";
    ViewBag.Header = "info";
    
    if((bool)ViewData["contains"]){
        <div class="pos"><img src="~/images/images/pay_dian.jpg" /> <a href="#">会员中心</a> - 防沉迷认证</div>
        	<div class="form1" style="background:none;">
                <p style="margin:60px 0 0 0;" class="tc"><img src="~/images/images/safe_img2.jpg" /></p>
            </div>
    }
    else
    {
        @section HeadJavaScript{
            <script src="~/Scripts/angular/base/angular.min.js" type="text/javascript"></script>
            <!--[if (IE 6)|(IE 7)]><script type="text/javascript" src="~/Scripts/angular/base/json2.js"></script><![endif]-->
            <script src="~/Scripts/angular/js/user.js" type="text/javascript"></script>
            <script src="~/Scripts/angular/base/angular.autoload.js" type="text/javascript"></script>
        }
        <div class="pos"><img src="~/images/images/pay_dian.jpg" /> <a href="#">会员中心</a> - 防沉迷认证</div>
        <div class="form1" style="background:none;">
            	
            <form name="form" on-submit="submit()" onsubmit="return false;" ng-controller="Ctrl" ng-init="load({
                username: { msg: '请填写您的真实姓名，由2-15个汉字组成',error: '请填写您的真实姓名 ，由2-15个汉字组成', pattern: '对不起，姓名只能由中文组成',success:true}
                ,card: {msg: '身份证是用来断定您通行证归属的唯一凭证' ,error: '对不起，您输入的身份证号码有误',success:true}
                ,verifyvalue: { msg:'请输入图片显示的数字或字母',error: '请正确填写验证码',success:true}
                ,submit:{verifycode:'验证码错误',user:'系统繁忙，请稍候再试',identity:'用户身份错误,请重新登录',error:'系统异常，请联系我们'}
            });
                submit.url = '/user/AddIdcard/@ViewData["code"]';
            "
            >

            <table class="tab1" width="720">
                    <tr>
                        <td width="115"><span class="txtr">真实姓名：</span> </td>
                        <td width="270">
                            <input class="text270" type="text" tabindex="0" name="username" ng-init="username.input()" on-focus="username.input()" on-blur="username.validate();" ng-model="username.value" ng-pattern="username.pattern" ng-minlength="2" ng-maxlength="15"  required/>
			           
                        </td>
                        <td>
                        	 <span class="label2" ng-show="!username.error&&!username.success&&username.msg" ng-bind-template="{{username.msg}}"></span>
			                <span class="error" ng-show="username.error" style="display:none;"><img src="~/images/images/error.jpg"> {{username.error}}</span>
			                <span ng-show="username.success" style="display:none;"><img src="~/images/images/right.jpg"></span>
                        </td>
                    </tr>
                    <tr>
                        <td><span class="txtr">身份证号码：</span> </td>
                        <td>
                             <input class="text270" type="text" tabindex="1" name="card" ng-init="card.input()" on-focus="card.input()" on-blur="card.validate();" ng-model="card.value" required/>
			           
                        </td>
                        <td>
                        	<span class="label2" ng-show="!card.error&&!card.success&&card.msg" ng-bind-template="{{card.msg}}"></span>
			                <span class="error" ng-show="card.error" style="display:none;"><img src="~/images/images/error.jpg"> {{card.error}}</span>
			                <span ng-show="card.success" style="display:none;"><img src="~/images/images/right.jpg"></span>
                        </td>
                    </tr>
                    <tr>
                        <td><span class="txtr">验证码：</span> </td>
                        <td>
                        	 <input class="text270" type="text" tabindex="2" name="verifyvalue" ng-init="verifyvalue.input()" on-focus="verifyvalue.input()" on-blur="verifyvalue.validate();" ng-model="verifyvalue.value" ng-pattern="verifyvalue.pattern" required/>
			            
                        </td>
                        <td>
                        	<span class="label2" ng-show="!verifyvalue.error&&!verifyvalue.success&&verifyvalue.msg" ng-bind-template="{{verifyvalue.msg}}"></span>
			            <span class="error" ng-show="verifyvalue.error" style="display:none;"><img src="~/images/images/error.jpg"> {{verifyvalue.error}}</span>
			            <span ng-show="verifyvalue.success" style="display:none;"><img src="~/images/images/right.jpg"></span>
                        </td>
                    </tr>
                   <tr>
                        <td><span class="txtr">验证码图片：</span> </td>
                        <td>
                        	<img ng-src="{{verifycode.value}}" ng-click="verifycode.newdefault()" style="border:1px solid #000;" />
                             <a ng-click="verifycode.newdefault()" style="color:#898989; text-decoration:none;">看不清楚，换一张</a>
                        </td>
                        <td>
                        	
                        </td>
                    </tr>
                    
                    <tr ng-show="submit.error" style="display:none">
                        <td></td>
                        <td colspan="2">
                        	<span class="red">{{submit.error}}</span>
                        </td>
                    </tr>
                    <tr>
                    	<td></td>
                        <td align="center">
                        	<input type="submit" value="" class="safe_tj" />
                        </td>
                        <td></td>
                    </tr>
                </table>
            </form>
            <p style="margin:20px 0 0 140px;" class="c999">请妥善保管好您的密码，勿告诉他人；</p>
        </div>
        <div class="safe_tip">
            <img src="~/images/images/safe_tip.jpg" /> 温馨提示
        </div>
        <div class="safe_tips">
            <p>身份证号码一旦绑定将无法修改</p>
        </div>
             
    }
}